﻿<!DOCTYPE html>
<html>
<head>
    <title>Saurai-Jack's image gallery</title>
    <script src="Scripts/class.js"></script>
    <script src="Scripts/http-requester.js"></script>
    <script src="Scripts/jquery-2.0.2.js"></script>
    <script src="Scripts/jquery-2.0.2.min.js"></script>
    <script src="Scripts/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="Scripts/ui.js"></script>
    <script src="Scripts/persister.js"></script>
    <script src="Scripts/controller.js"></script>
    <link href="style/style.css" rel="stylesheet" />
    <link href="style/jquery-ui-1.10.3.custom.css" rel="stylesheet" />
    <script src="Scripts/UIApplier.js"></script>
</head>
<body>
    <div id="wrapper">
        <div id="albums">
            <h2>Albums:</h2>

        </div>

        <div id="gallery">
        </div>

        <div id="notifications">
        </div>


    </div>
    <script>
        var ctr = controllers.get();
        //ctr.persister.album.getAlbums(1, function (data) { alert("success") }, function (data) { alert("error") });
        //ctr.persister.image.getImages(1, function (data) { alert("success") }, function (data) { alert("error") });
        //ctr.persister.image.getImage(1, 2, function (data) { alert("success") }, function (data) { alert("error") });
        //ctr.persister.user.getUsers(function (data) { alert("success") }, function (data) { alert("error") });
        //ctr.persister.comment.getComment(1, 1, function (data) { alert("success") }, function (data) { alert("error") });
        //var comment = {
        //    CommentId: 10,
        //    Content: "yeeei",
        //    AuthorId: 7,
        //    ImageId: 2
        //};
        //ctr.persister.comment.postComment(1, 10, comment, function (data) { alert("success") }, function (data) { alert("error") });

        // var user = {
        //     UserId: 3,
        //     UserName: "Mariela2"
        // };
        //
        // ctr.persister.user.postUser(user, function (data) { alert("success") }, function (data) { alert("error") });
        //
        //var album = {
        //    AlbumId: 10,
        //    AlbumName: "Zemi toq JS",
        //    UserId: 6
        //};

        //ctr.persister.album.postAlbum(6, 10, album, function (data) { alert("success") }, function (data) { alert("error") });
    </script>
</body>

</html>
